From 3f100bb8191d8e40cc55dbed3ee0ce3c09d480d5 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Fri, 18 Jan 2002 23:14:45 +0000 Subject: [PATCH] Fix for changes to draw_focus. Fri Jan 18 18:14:11 2002 Owen Taylor * src/pixbuf-draw.c (draw_focus): Fix for changes to draw_focus. --- modules/engines/pixbuf/ChangeLog | 4 ++++ modules/engines/pixbuf/pixbuf-draw.c | 9 ++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/modules/engines/pixbuf/ChangeLog b/modules/engines/pixbuf/ChangeLog index 989b4a129b..7ee358dd54 100644 --- a/modules/engines/pixbuf/ChangeLog +++ b/modules/engines/pixbuf/ChangeLog @@ -1,3 +1,7 @@ +Fri Jan 18 18:14:11 2002 Owen Taylor + + * src/pixbuf-draw.c (draw_focus): Fix for changes to draw_focus. + 2001-09-21 Hans Breuer * src/pixbuf-rc-style-c : GtkRcStyle::parse has a GtkSettings diff --git a/modules/engines/pixbuf/pixbuf-draw.c b/modules/engines/pixbuf/pixbuf-draw.c index b6642f9f22..f9687bc006 100644 --- a/modules/engines/pixbuf/pixbuf-draw.c +++ b/modules/engines/pixbuf/pixbuf-draw.c @@ -970,6 +970,7 @@ draw_extension (GtkStyle *style, static void draw_focus (GtkStyle *style, GdkWindow *window, + GtkStateType state_type, GdkRectangle *area, GtkWidget *widget, const gchar *detail, @@ -983,19 +984,13 @@ draw_focus (GtkStyle *style, g_return_if_fail(style != NULL); g_return_if_fail(window != NULL); - /* Why? */ - if (width >=0) - width++; - if (height >=0) - height++; - match_data.function = TOKEN_D_FOCUS; match_data.detail = (gchar *)detail; match_data.flags = 0; if (!draw_simple_image (style, window, area, widget, &match_data, TRUE, FALSE, x, y, width, height)) - parent_class->draw_focus (style, window, area, widget, detail, + parent_class->draw_focus (style, window, state_type, area, widget, detail, x, y, width, height); } -- 2.30.2